<template>
  <div class="return-goods">
    <table-box :data="tableData" :table-config="tableConfig"></table-box>
  </div>
</template>
<script>
export default {
  name: 'ReturnedGoods',
  props: {
    tableData: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      tableConfig: {
        hideFuncBar: true,
        setting: [
          {
            prop: 'operatorBy',
            label: '操作人',
            minWidth: 120
          },
          {
            prop: 'nodeCode',
            label: '节点名称',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'call-center',
              dictTypeCode: 'RETURN_SCHEDULE'
            },
            minWidth: 120
          },
          {
            prop: 'nodeContentInfo',
            label: '详细内容',
            minWidth: 200
          },
          {
            prop: 'operatorTime',
            label: '操作时间',
            minWidth: 140
          }
        ]
      }
    }
  }
}
</script>
<style lang="scss" scoped>
.return-goods{
  display: inline-block;
  /deep/ span:first-child{
    text-align: left !important;
  }
  /deep/ .el-table__empty-block{
    & > .el-table__empty-text{
      text-align: center !important;
    }
  }
}
</style>
